# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=thunar-archive-plugin
pkgver=0.4.0
pkgrel=0
pkgdesc="Create and deflate archives in Thunar"
url="https://goodies.xfce.org/projects/thunar-plugins/thunar-archive-plugin"
arch="all"
license="GPL-2.0-only"
options="!check" # no test suite
depends="thunar"
makedepends="gtk+-dev intltool thunar-dev exo-dev"
subpackages="$pkgname-lang"
source="https://archive.xfce.org/src/thunar-plugins/thunar-archive-plugin/${pkgver%.*}/thunar-archive-plugin-$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib/xfce4 \
		--localstatedir=/var \
		--disable-static
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	# dont want file-roller
	rm -f "$pkgdir"/usr/lib/xfce4/thunar-archive-plugin/file-roller.tap
}

sha512sums="6590d8765ac6eab14fae7758e4c47c66b52e79e2e4b01a86d25bd35492590925ca35e4bbade8a9d8f0c73386eaeda6863e2a7a39a2df2904404f7e2bfdd91a44  thunar-archive-plugin-0.4.0.tar.bz2"
